/**
 * @addtogroup object.h
 * object.h
 * @{
 */
/**
 * @file hcc_error_code_drv.h
 * @brief
 * @note

 * @par          修改日志
 * <table>
 * <tr><th>Date<th>Version<th>Author<th>Description
 * <tr><td>2024-10-14<td>1.0<td>软件工程院<td>创建初始版本
 * @copyright 杭州鸿泉物联网技术股份有限公司
 */

#ifndef _HCC_ERROR_CODE_DRV_H_
#define _HCC_ERROR_CODE_DRV_H_

#ifdef __cplusplus
extern "C" {
#endif

//--------------------------------------------------------------------------------
/// 驱动(HCC_MODULE_TYPE_DRIVER)模块定义
enum
{
	kHccDrvSocCan	= 0,			///< 片上CAN驱动
	kHccDrvSocI2c	= 1,			///< 片上I2C驱动
	kHccDrvSocUart	= 2,			///< 片上Uart驱动
	kHccDrvSocClock	= 3,			///< 片上CLOCK驱动
	kHccDrvSocFlash	= 4,			///< 片上FLASH驱动
	kHccDrvSocWDog	= 5,			///< 片上WATCHDOG驱动
	kHccDrvSocCommon	= 6,			///<驱动层公共错误码
	kHccDrvIdpEnumI2c	= 64,			///<IO模拟I2C驱动
	kHccDrvIdpSpi	= 66,			///<IO模拟SPI驱动
	kHccDrvIdpMdio	= 67,			///<IO模拟MDIO驱动
	kHccDrvPerFlash	= 80,			///<外设Flash驱动
	kHccDrvPerFram	= 81,			///<外设Fram驱动
	kHccDrvPerRtc	= 82,			///<外设Rtc驱动
	kHccDrvPerAxis	= 83,			///<外设Axis驱动
	kHccDrvPerHsm	= 84,			///<外设Hsm驱动
	kHccDrvPerCan	= 85,			///<外设Can驱动
	kHccDrvPerIcCard	= 86,			///<外设IcCard模块
	kHccDrvPerMmc	= 87,			///<外设Mmc驱动
	kHccDrvPerAudio	= 88,			///<外设Audio驱动
	kHccDrvPerPhy	= 89,			///<外设Phy驱动
	kHccDrvPerFee	= 90,			///<外设Fee驱动
	kHccDrvHalCommon	= 110,			///<抽象层公共错误码
	kHccBrd	= 120,			///<板级层
	kHccDrvDev	= 121,			///<DEV层公共驱动
	kHccDrvPer	= 122,			///<PER层公共驱动
	kHccDrvIdp	= 123,			///<IDP层公共驱动
	kHccDrvDevPort	= 160,			///<DEV层 Port
	kHccDrvDevGpio	= 161,			///<DEV层 Gpio
	kHccDrvDevXcu	= 162,			///<DEV层 Xcu
};

///旧版本适配补丁
#define kHccDrvCan kHccDrvSocCan
#define kHccDrvI2c kHccDrvSocI2c
#define kHccDrvUart kHccDrvSocUart
#define kHccDrvClock kHccDrvSocClock
#define kHccDrvFlash kHccDrvSocFlash
#define kHccDrvWDog kHccDrvSocWDog
#define kDrvErrorCode kHccDrvSocCommon
#define kHccDrv kHccDrvSocCommon
#define kHccIdpDrvEnumI2c kHccDrvIdpEnumI2c
#define kHccIdpDrvIdpSpi kHccDrvIdpSpi
#define kHccPerDrvFlash kHccDrvPerFlash
#define kHccPerDrvFram kHccDrvPerFram
#define kHccPerDrvRtc kHccDrvPerRtc
#define kHccPerDrvAxis kHccDrvPerAxis
#define kHccPerDrvHsm kHccDrvPerHsm
#define kHccPerDrvCan kHccDrvPerCan
#define kHccPerDrvIcCard kHccDrvPerIcCard
#define kHccPerDrvMmc kHccDrvPerMmc
#define kHccPerDrvAudio kHccDrvPerAudio

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_DRV_H_
/**
 * @
 */
